<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>thunar-dialogs: Thunar Internal Functions Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Thunar Internal Functions Reference Manual">
<link rel="up" href="ch12.html" title="Dialog">
<link rel="prev" href="ch12.html" title="Dialog">
<link rel="next" href="ThunarAbstractDialog.html" title="ThunarAbstractDialog">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#thunar-thunar-dialogs.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch12.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch12.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ThunarAbstractDialog.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="thunar-thunar-dialogs"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="thunar-thunar-dialogs.top_of_page"></a>thunar-dialogs</span></h2>
<p>thunar-dialogs</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="thunar-thunar-dialogs.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-create" title="thunar_dialogs_show_create ()">thunar_dialogs_show_create</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="ThunarJob.html" title="ThunarJob"><span class="returnvalue">ThunarJob</span></a> *
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-rename-file" title="thunar_dialogs_show_rename_file ()">thunar_dialogs_show_rename_file</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-about" title="thunar_dialogs_show_about ()">thunar_dialogs_show_about</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-error" title="thunar_dialogs_show_error ()">thunar_dialogs_show_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="returnvalue">ThunarJobResponse</span></a>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-job-ask" title="thunar_dialogs_show_job_ask ()">thunar_dialogs_show_job_ask</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="returnvalue">ThunarJobResponse</span></a>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-job-ask-replace" title="thunar_dialogs_show_job_ask_replace ()">thunar_dialogs_show_job_ask_replace</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-job-error" title="thunar_dialogs_show_job_error ()">thunar_dialogs_show_job_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="thunar-thunar-dialogs.html#thunar-dialogs-show-insecure-program" title="thunar_dialogs_show_insecure_program ()">thunar_dialogs_show_insecure_program</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="thunar-thunar-dialogs.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="thunar-thunar-dialogs.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="thunar-dialogs-show-create"></a><h3>thunar_dialogs_show_create ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
thunar_dialogs_show_create (<em class="parameter"><code><span class="type">gpointer</span> parent</code></em>,
                            <em class="parameter"><code>const <span class="type">gchar</span> *content_type</code></em>,
                            <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                            <em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>);</pre>
<p>Displays a Thunar create dialog  with the specified
parameters that asks the user to enter a name for a new file or
folder.</p>
<p>The caller is responsible to free the returned filename using
<code class="function">g_free()</code> when no longer needed.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-create.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>a <span class="type">GdkScreen</span>, a <span class="type">GtkWidget</span> or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>content_type</p></td>
<td class="parameter_description"><p>the content type of the file or folder to create.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>filename</p></td>
<td class="parameter_description"><p>the suggested filename or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>title</p></td>
<td class="parameter_description"><p>the dialog title.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="thunar-dialogs-show-create.returns"></a><h4>Returns</h4>
<p> the filename entered by the user or <code class="literal">NULL</code> if the user
cancelled the dialog.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-rename-file"></a><h3>thunar_dialogs_show_rename_file ()</h3>
<pre class="programlisting"><a class="link" href="ThunarJob.html" title="ThunarJob"><span class="returnvalue">ThunarJob</span></a> *
thunar_dialogs_show_rename_file (<em class="parameter"><code><span class="type">gpointer</span> parent</code></em>,
                                 <em class="parameter"><code><a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> *file</code></em>,
                                 <em class="parameter"><code><a class="link" href="thunar-thunar-enum-types.html#ThunarOperationLogMode" title="enum ThunarOperationLogMode"><span class="type">ThunarOperationLogMode</span></a> log_mode</code></em>);</pre>
<p>Displays the Thunar rename dialog for a single file rename.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-rename-file.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>a <span class="type">GtkWidget</span> on which the error dialog should be shown, or a <span class="type">GdkScreen</span>
if no <span class="type">GtkWidget</span> is known. May also be <code class="literal">NULL</code>, in which case the default
<span class="type">GdkScreen</span> will be used.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>file</p></td>
<td class="parameter_description"><p>the <a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> we're going to rename.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="thunar-dialogs-show-rename-file.returns"></a><h4>Returns</h4>
<p> The <a class="link" href="ThunarJob.html" title="ThunarJob"><span class="type">ThunarJob</span></a> responsible for renaming the file or
<code class="literal">NULL</code> if there was no renaming required.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-about"></a><h3>thunar_dialogs_show_about ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
thunar_dialogs_show_about (<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
                           <em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
                           <em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
                           <em class="parameter"><code>...</code></em>);</pre>
<p>Displays the Thunar about dialog with <em class="parameter"><code>format</code></em>
 as main text.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-about.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>the parent <span class="type">GtkWindow</span> or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>title</p></td>
<td class="parameter_description"><p>the software title.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>format</p></td>
<td class="parameter_description"><p>the <code class="function">printf()</code>-style format for the main text in the about dialog.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>argument list for the <em class="parameter"><code>format</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-error"></a><h3>thunar_dialogs_show_error ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
thunar_dialogs_show_error (<em class="parameter"><code><span class="type">gpointer</span> parent</code></em>,
                           <em class="parameter"><code>const <span class="type">GError</span> *error</code></em>,
                           <em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
                           <em class="parameter"><code>...</code></em>);</pre>
<p>Displays an error dialog on <em class="parameter"><code>widget</code></em>
 using the <em class="parameter"><code>format</code></em>
 as primary message and optionally
displaying <em class="parameter"><code>error</code></em>
 as secondary error text.</p>
<p>If <em class="parameter"><code>widget</code></em>
 is not <code class="literal">NULL</code> and <em class="parameter"><code>widget</code></em>
 is part of a <span class="type">GtkWindow</span>, the function makes sure
that the toplevel window is visible prior to displaying the error dialog.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-error.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>a <span class="type">GtkWidget</span> on which the error dialog should be shown, or a <span class="type">GdkScreen</span>
if no <span class="type">GtkWidget</span> is known. May also be <code class="literal">NULL</code>, in which case the default
<span class="type">GdkScreen</span> will be used.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span>, which gives a more precise description of the problem or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>format</p></td>
<td class="parameter_description"><p>the <code class="function">printf()</code>-style format for the primary problem description.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>argument list for the <em class="parameter"><code>format</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-job-ask"></a><h3>thunar_dialogs_show_job_ask ()</h3>
<pre class="programlisting"><a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="returnvalue">ThunarJobResponse</span></a>
thunar_dialogs_show_job_ask (<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
                             <em class="parameter"><code>const <span class="type">gchar</span> *question</code></em>,
                             <em class="parameter"><code><a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="type">ThunarJobResponse</span></a> choices</code></em>);</pre>
<p>Utility function to display a question dialog for the ThunarJob::ask
signal.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-job-ask.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>the parent <span class="type">GtkWindow</span> or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>question</p></td>
<td class="parameter_description"><p>the question text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>choices</p></td>
<td class="parameter_description"><p>possible responses.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="thunar-dialogs-show-job-ask.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="type">ThunarJobResponse</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-job-ask-replace"></a><h3>thunar_dialogs_show_job_ask_replace ()</h3>
<pre class="programlisting"><a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="returnvalue">ThunarJobResponse</span></a>
thunar_dialogs_show_job_ask_replace (<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
                                     <em class="parameter"><code><a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> *src_file</code></em>,
                                     <em class="parameter"><code><a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> *dst_file</code></em>);</pre>
<p>Asks the user whether to replace the destination file with the
source file identified by <em class="parameter"><code>src_file</code></em>
.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-job-ask-replace.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>the parent <span class="type">GtkWindow</span> or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>src_file</p></td>
<td class="parameter_description"><p>the <a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> of the source file.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dst_file</p></td>
<td class="parameter_description"><p>the <a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> of the destination file that
may be replaced with the source file.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="thunar-dialogs-show-job-ask-replace.returns"></a><h4>Returns</h4>
<p> the selected <a class="link" href="thunar-thunar-enum-types.html#ThunarJobResponse" title="enum ThunarJobResponse"><span class="type">ThunarJobResponse</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-job-error"></a><h3>thunar_dialogs_show_job_error ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
thunar_dialogs_show_job_error (<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
                               <em class="parameter"><code><span class="type">GError</span> *error</code></em>);</pre>
<p>Utility function to display a message dialog for the
ThunarJob::error signal.</p>
<div class="refsect3">
<a name="thunar-dialogs-show-job-error.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>the parent <span class="type">GtkWindow</span> or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>the <span class="type">GError</span> provided by the <a class="link" href="ThunarJob.html" title="ThunarJob"><span class="type">ThunarJob</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="thunar-dialogs-show-insecure-program"></a><h3>thunar_dialogs_show_insecure_program ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
thunar_dialogs_show_insecure_program (<em class="parameter"><code><span class="type">gpointer</span> parent</code></em>,
                                      <em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
                                      <em class="parameter"><code><a class="link" href="ThunarFile.html" title="ThunarFile"><span class="type">ThunarFile</span></a> *file</code></em>,
                                      <em class="parameter"><code>const <span class="type">gchar</span> *command</code></em>);</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>